package lev01_beginnerClass.class01_bitOperation;


/**
 * use bit operation make decimalism number to binary system
 */
public class L01_DecimalismToBinarySystem {
    public static void main(String[] args) {
        operation(8);
    }

    public static void operation(int num){
        for(int i = 31;i>= 0;i--){
            System.out.print((num & (1 << i)) == 0? "0":"1");
        }
        System.out.println();
    }
}
